/*
 * @Date: 2023-01-09 19:36:27
 * @LastEditors: Zireael 1193875164@qq.com
 * @LastEditTime: 2023-02-12 19:41:34
 * @FilePath: \A19\backend\src\shared\protocols\Login\PtlLogin.ts
 */
import { ObjectId } from 'mongodb';
import { Gender } from '../../../utils/Gender';
import { BaseResponse, BaseRequest } from '../base';
/**
 * @description: 登录
 */
export interface ReqLogin extends BaseRequest {
    email: string,
    password: string
}

export interface ResLogin extends BaseResponse {
    token: string,
    user: {
        _id:ObjectId
        role: string,
        school: string,
        name: string,
        portrait: string,
        email: string,
        number: string,
        gender: number
    }
}

export const conf = {
    needLogin: false
}